home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / Common / CountryElevator.script < prev    next >
Encoding:
Text File  |  2001-12-21  |  1.2 KB  |  47 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. class CCountryElevatorMesh
  11. {
  12.   string MeshFile = "Models/B_Country_Elevator.mesh";
  13.   string SkinFile = "Models/B_Country_Elevator.skin";
  14. }
  15.  
  16. class CCountryElevatorStateControl extends CUnitLifeControl
  17. {
  18.   void CCountryElevatorStateControl()
  19.   {
  20.     CUnitLifeControl(15000.0);
  21.     m_DestroyPause = 20.0;
  22.     m_ExplosionId  = "EXPLID_BuildingExplosion";
  23.   }
  24. }
  25.  
  26. // Building without ground control (for use in villages)
  27. class CBaseCountryElevator extends CBuilding, CUnitWithStateControl
  28. {
  29.   void CBaseCountryElevator()
  30.   {
  31.     InitializeModelAsStatic("CCountryElevatorMesh");
  32.     CUnitWithStateControl("CCountryElevatorStateControl");
  33.   }
  34. }
  35.  
  36. // Single game object
  37. class CMountedCountryElevator extends CBaseCountryElevator
  38. {
  39.   void CMountedCountryElevator()
  40.   {
  41.     InitializeGroundControl();
  42.   }
  43. }
  44.  
  45.  
  46.  
  47.